package cn.yunchongbao.charging.order.feign;

import cn.yunchongbao.charging.common.pojo.JsonResult;
import cn.yunchongbao.charging.common.pojo.vo.GunStatusUpdateParam;
import cn.yunchongbao.charging.common.pojo.vo.StationInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient("deviceService")
public interface DeviceClient {
    @GetMapping("/device/station/info/{gunId}")
    JsonResult<StationInfoVo> getStationInfo(@PathVariable("gunId") Integer gunId);

    @PostMapping("/device/station/gun/status/update")
    JsonResult<Boolean> gunStatusUpdate(@RequestBody GunStatusUpdateParam gunStatusUpdateParam);
}
